package com.wanmao.test.model;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;


public class InstitutionModel implements Parcelable {


    private String fileName;//文件名
    private List<TabsBean> tabs;//sheet

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public List<TabsBean> getTabs() {
        return tabs;
    }

    public void setTabs(List<TabsBean> tabs) {
        this.tabs = tabs;
    }

    public static class TabsBean implements Parcelable {


        private String step;//技术监督阶段
        private String performance;//技术监督专业
        private List<ContentBean> content;

        public String getStep() {
            return step;
        }

        public void setStep(String step) {
            this.step = step;
        }

        public String getPerformance() {
            return performance;
        }

        public void setPerformance(String performance) {
            this.performance = performance;
        }

        public List<ContentBean> getContent() {
            return content;
        }

        public void setContent(List<ContentBean> content) {
            this.content = content;
        }

        public static class ContentBean implements Parcelable {


            private String project;//监督项目
            private String gist;//监督要点
            private String according;//监督依据
            private String require;//监督结果
            private String result;//监督结果

            private String performance;//监督专业

            public String getPerformance() {
                return performance;
            }

            public void setPerformance(String performance) {
                this.performance = performance;
            }


            public String getProject() {
                return project;
            }

            public void setProject(String project) {
                this.project = project;
            }

            public String getGist() {
                return gist;
            }

            public void setGist(String gist) {
                this.gist = gist;
            }

            public String getAccording() {
                return according;
            }

            public void setAccording(String according) {
                this.according = according;
            }

            public String getRequire() {
                return require;
            }

            public void setRequire(String require) {
                this.require = require;
            }

            public String getResult() {
                return result;
            }

            public void setResult(String result) {
                this.result = result;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeString(this.project);
                dest.writeString(this.gist);
                dest.writeString(this.according);
                dest.writeString(this.require);
                dest.writeString(this.result);
                dest.writeString(this.performance);
            }

            public ContentBean() {
            }

            protected ContentBean(Parcel in) {
                this.project = in.readString();
                this.gist = in.readString();
                this.according = in.readString();
                this.require = in.readString();
                this.result = in.readString();
                this.performance = in.readString();
            }

            public static final Creator<ContentBean> CREATOR = new Creator<ContentBean>() {
                @Override
                public ContentBean createFromParcel(Parcel source) {
                    return new ContentBean(source);
                }

                @Override
                public ContentBean[] newArray(int size) {
                    return new ContentBean[size];
                }
            };
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.step);
            dest.writeString(this.performance);
            dest.writeTypedList(this.content);
        }

        public TabsBean() {
        }

        protected TabsBean(Parcel in) {
            this.step = in.readString();
            this.performance = in.readString();
            this.content = in.createTypedArrayList(ContentBean.CREATOR);
        }

        public static final Creator<TabsBean> CREATOR = new Creator<TabsBean>() {
            @Override
            public TabsBean createFromParcel(Parcel source) {
                return new TabsBean(source);
            }

            @Override
            public TabsBean[] newArray(int size) {
                return new TabsBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.fileName);
        dest.writeTypedList(this.tabs);
    }

    public InstitutionModel() {
    }

    protected InstitutionModel(Parcel in) {
        this.fileName = in.readString();
        this.tabs = in.createTypedArrayList(TabsBean.CREATOR);
    }

    public static final Creator<InstitutionModel> CREATOR = new Creator<InstitutionModel>() {
        @Override
        public InstitutionModel createFromParcel(Parcel source) {
            return new InstitutionModel(source);
        }

        @Override
        public InstitutionModel[] newArray(int size) {
            return new InstitutionModel[size];
        }
    };


}
